package com.spring.cloud.examples.es.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;


/**
 * 商品ES文档对象
 */
@Data
@Document(indexName = "product_index", type = "product_type")
public class Product implements Serializable {

    /**
     * 名称
     */
    private String name;

    /**
     * 类别
     */
    private String category;

    /**
     * 品牌
     */
    private String brands;
}
